﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NutriLeaf.Web;

namespace NutriLeaf.Web.Core.Exercise
{
    public interface IExercise
    {
        void AddExercise(int userId, ExerciseType type, TimeSpan duration, int calorieBurned,float speed, string metaData, string description, DateTime clientDateTime,ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void AddExercise(int userId, ExerciseType type, TimeSpan duration, string metadata,float speed, string descirpotion, DateTime clientDateTime, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void RemoveExercise(int exerciseId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void RemoveRecentExercise(int userId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        List<Model.Exercise> GetExerciseForADay(int userId, DateTime clientDateTime, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        List<Model.Exercise> GetExercise(int userId, DateTime clientDateTimeStart, DateTime clientDateTimeEnd, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        Model.Exercise GetExercise(int exerciseId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void UpdateExercise(Model.Exercise exercise, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

    }
}